function doFbLogin() {
	var redirect_uri = 'http://www.facebook.com/connect/login_success.html';
	var client_id = "415796551796156";
	var authorize_url = 'https://graph.facebook.com/oauth/authorize?';
	authorize_url += "client_id=" + client_id;
	authorize_url += "&redirect_uri=" + redirect_uri;
	authorize_url += "&display=touch";
	authorize_url += "&type=user_agent";
	authorize_url += "&scope=publish_stream,read_stream,offline_access,";
	authorize_url += "user_about_me,user_location";
	window.plugins.childBrowser.showWebPage(authorize_url);
	window.plugins.childBrowser.onLocationChange = function(loc) {
		if (loc.indexOf(redirect_uri) == 0) {
			window.plugins.childBrowser.close();
			var fbCode = loc.match(/access_token=(.*)$/)[1];
			alert(fbCode);
		}
	}
}


// $(document).bind("mobileinit", function() {
	// $.mobile.autoInitializePage = false;
	// document.addEventListener("deviceready", function() {
		// $.mobile.initializePage();
	// }, false);
// }); 